home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / mail / mh / contrib / multimedia / mhn-tutorial.tex.Z / mhn-tutorial.tex / node25_ct.html (.txt) < prev    next >
Encoding:
LaTeX Document  |  1993-03-16  |  5.3 KB  |  128 lines

  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//en">
  2. <!--Converted with LaTeX2HTML 2022 (Released January 1, 2022) -->
  3. <HTML lang="en">
  4. <HEAD>
  5. <TITLE>Contents of HP 9000/710</TITLE>
  6. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
  7. <META NAME="viewport" CONTENT="width=device-width, initial-scale=1.0">
  8. <META NAME="Generator" CONTENT="LaTeX2HTML v2022">
  9. <LINK REL="STYLESHEET" HREF="mhn-tutorial.css">
  10. <LINK REL="previous" HREF="node24_mn.html">
  11. <LINK REL="up" HREF="node23_mn.html">
  12. <LINK REL="next" HREF="node26_mn.html">
  13. </HEAD>
  14. <BODY bgcolor="#ffffff" text="#000000" link="#9944EE" vlink="#0000ff" alink="#00ff00">
  15. <H2><A ID="SECTION000132000000000000000">
  16. HP 9000/710</A>
  17. </H2>
  18. The HP-Apollo 9000/710 workstation has a telephone-quality audio chip
  19. and an internal speaker.  Newer workstations in the 9000/700 series
  20. may also be equipped for audio; the 9000/720 and 9000/730 models aren't.
  21. HP provides a number of programs in source form that may be used
  22. with <TT>mhn</TT>:
  23.   STYLE="" SRC="img20.png"
  24.  ALT="\begin{brieflist}
  25. \item {\tt player} and {\tt splayer};
  26. \item {\tt recorder} and {\tt srecorder}
  27. \end{brieflist}">
  28. The directory <TT>/usr/audio/examples/</TT> contains these programs.
  29. The <TT>README</TT> file in that directory documents the various audio
  30. utility programs for recording and playing sounds.  
  31. The programs from <TT>/usr/audio/examples</TT> should be copied into a
  32. directory named in your <TT>$PATH</TT> environment variable so that the
  33. audio programs can be found if absolute paths aren't used in the
  34. invocations.
  35. Before any of the aforementioned programs can be used, the audio
  36. device files must be created by running <TT>/usr/audio/bin/make_audio_dev</TT>, and two daemons must be started by
  37. the superuser: <TT>/usr/etc/ncs/llbd</TT> and <TT>/usr/audio/bin/Aserver</TT>.  Refer to the man page Audio(5) for detailed,
  38. step by step instructions on how to do these things.  Alternatively,
  39. refer to the HP publication ``Audio Users Guide'' (HP order number
  40. A1991-90609, November 1991 version).
  41. The audio devices support several ``native'' encodings that vary as to
  42. which of the audio device files is used: one of <TT>/dev/audio[BEI][ALU]</TT>, where <TT>E</TT>=external jack, <TT>I</TT>=internal
  43. speaker, <TT>B</TT>=both; <TT>A</TT>=8-bit A-law, <TT>L</TT>=16-bit linear,
  44. <TT>U</TT>=8-bit <I>μ</I>-law.  It is possible to <TT>cat</TT> a raw audio data
  45. file of the appropriate type to or from one of these devices. For
  46. example, a raw SPARC audio file may be played by running this command:
  47. <PRE>
  48. % cat bark.raw >/dev/audioIU
  49. </PRE>
  50. There is also a raw <TT>/dev/audio</TT> device.
  51. (You must create the audio device files before you can cat anything
  52. to them; again, refer to Audio(5) for information on how to do this.)
  53. In HP-UX 8.07, the audio tools, rather than looking for header
  54. information in the sound data, rely on user-supplied information, such
  55. as preferences, file extensions, or command line options, to inform
  56. the tools about the types and sampling rates of the audio data.  This
  57. means that both <TT>audio/basic</TT> and <TT>audio/x-next</TT> can be used,
  58. but you have to use an appropriate file extension or command line
  59. option as follows:
  60. <TABLE CELLPADDING=3>
  61. <TR><TD ALIGN="LEFT"><I>type</I></TD>
  62. <TD ALIGN="CENTER"><I>extension</I></TD>
  63. <TD ALIGN="CENTER"><I>option</I></TD>
  64. </TR>
  65. <TR><TD ALIGN="LEFT"> </TD>
  66. <TD ALIGN="CENTER"> </TD>
  67. <TD ALIGN="CENTER"> </TD>
  68. </TR>
  69. <TR><TD ALIGN="LEFT"><TT>audio/basic</TT></TD>
  70. <TD ALIGN="CENTER"><TT>.u</TT></TD>
  71. <TD ALIGN="CENTER"><TT>-u</TT></TD>
  72. </TR>
  73. <TR><TD ALIGN="LEFT"><TT>audio/x-next</TT></TD>
  74. <TD ALIGN="CENTER"><TT>.au</TT></TD>
  75. <TD ALIGN="CENTER"><TT>-au</TT></TD>
  76. </TR>
  77. </TABLE>
  78. The relevant <TT>mhn</TT> profile entries for recording and playing
  79. audio parts are these:
  80. <PRE>
  81. mhn-compose-audio/basic:  recorder '%F' -u -pause
  82. mhn-compose-audio/x-next: recorder '%F' -au -pause
  83. mhn-show-audio/basic:     splayer -u
  84. mhn-show-audio/x-next:    splayer -au
  85. </PRE>
  86. In general, HP audio file names have the form 
  87. <BLOCKQUOTE>
  88. <I>file name</I>[[.<I>sample rate</I>].<I>type</I>]
  89. </BLOCKQUOTE>
  90. where
  91. <PRE><TT>
  92. <I>sample rate</I> <!-- MATH
  93.  $\rightarrow$
  94. → <I>digit</I><SUP>+</SUP> 000 <TT>|</TT> <I>digit</I><SUP>+</SUP> k 
  95. <BR><I>type</I>          <!-- MATH
  96.  $\rightarrow$
  97. → u <TT>|</TT> al <TT>|</TT> au <TT>|</TT> wav <TT>|</TT>                                         snd <TT>|</TT> l8 <TT>|</TT> lo8 <TT>|</TT> l16
  98. </TT></PRE>
  99. The audio types have these meanings:
  100. <PRE><TT>
  101. <I>μ</I>-law          u 
  102. A-law          al 
  103. Sun (self-describing format)          au 
  104. Microsoft RIFF Waveform          wav 
  105. Macintosh          snd 
  106. Linear8          l8 
  107. Linear8Offset          lo8 
  108. Linear16          l16
  109. </TT></PRE>
  110. Examples: 
  111.   STYLE="" SRC="img21.png"
  112.  ALT="\begin{comdesc}
  113. \item[bark.au] ---a Sun-format ({\tt audio/x-next}) sound file
  114. ...econd.
  115. \item[bark.8k.u] ---same data as in {\tt bark.8000.u}.
  116. \end{comdesc}">
  117. As with the SPARC, the default sample rate is 8000/second.
  118. Other useful programs supplied with HP-UX 8.07 are these:
  119.   STYLE="" SRC="img22.png"
  120.  ALT="\begin{comdesc}
  121. \item[/usr/audio/bin/audio\_demo] ---This program provides
  122. menus...
  123. ...s allows you to fiddle with the
  124. volume controls whenever you like.
  125. \end{comdesc}">
  126. </BODY>
  127. </HTML>
  128.